/*
package com.itheima.controller;

import com.itheima.domain.Book;
import com.itheima.exception.BusinessException;
import com.itheima.service.BookService;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class BookServiceImpl implements BookService  {
    @Override
    public boolean save(Book book) {
        return false;
    }

    @Override
    public boolean update(Book book) {
        return false;
    }

    @Override
    public boolean delete(Integer id) {
        return false;
    }

    @Override
    public Book getById(Integer id) {
        //模拟业务异常,包装成自定义异常
        if (id<0){
            throw new BusinessException(Code.BUSINESS_ERR,"请不要用您的技术挑战我的耐性!");
        }
        return null;
    }

    @Override
    public List<Book> getAll() {
        return null;
    }
}
*/
